package com.ocom.nettyxf.vo;

import lombok.Data;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2022/10/25
 **/
@Data
public class MealVo {
	/**
	 * mealNo	1	char	餐段编号	非饭堂消费：0，饭堂消费：1-99
	 * mealNamelen		char	餐段名称长度
	 * mealName			餐段名称	非饭堂消费填消费类型名称
	 * cosumerMode		int
	 * beginTime	2	unsigned char	餐段开始时间	HH:mm
	 * endTime	2	unsigned char	餐段结束时间	HH:mm
	 * mealMoney	4	int	定值金额	定值消费：定值金额；其它消费模式：最大消费金额，前高后低
	 */
	String mealNo = "00";
	String mealName = "0000000000000000000000000000000000000000";
	String cosumerMode = "01";
	String beginTime = "0000";
	String endTime = "0000";
	String mealMoney = "00000000";



	String accountType = "0000000000000000000000000000000000000000";
	String voucherMode = "00";

	public void setMealName(String mealName) {
		if(mealName.length()<40){
			int len =  mealName.length();
			for (int i = len;i<40;i++){
				mealName += "0";
			}
		}
		this.mealName = mealName;
	}

	public void setAccountType(String accountType) {
		if(accountType.length()<40){
			int len =  accountType.length();
			for (int i = len;i<40;i++){
				accountType += "0";
			}
		}
		this.accountType = accountType;
	}
}
